<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>php</Name>
        <Homepage>http://www.php.net</Homepage>
        <Packager>
            <Name>Fatih Turgel</Name>
            <Email>turgelfatih@gmail.com</Email>
        </Packager>
        <License>PHP</License>
        <IsA>library</IsA>
        <Summary>PHP7 is an HTML-embedded scripting language. The goal of the language is to allow web developers to write dynamically generated pages quickly</Summary>
        <Description>PHP7 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.</Description>
        <Archive sha1sum="b15bd8fef8d5b99b993784e9c2254ab82f616c64" type="tarbz2">http://us2.php.net/distributions/php-7.2.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>gd-devel</Dependency>
            <Dependency>re2c</Dependency>
            <Dependency>libzip-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>apr-devel</Dependency>
            <Dependency>apr-util-devel</Dependency>
            <Dependency>apache</Dependency>
            <Dependency>postfix</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>db-devel</Dependency>
            <Dependency>mariadb-lib</Dependency>
            <Dependency>libmcrypt-devel</Dependency>
            <Dependency>mit-kerberos</Dependency>
            <Dependency>libc-client</Dependency>
            <Dependency>postgresql-server</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>gdbm-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">int_overflow_in_mt_rand.patch</Patch> -->
<!--             <Patch level="1">stack_buffer_overflow_in_imagepstext.patch</Patch> -->
<!--             <Patch level="1">denial_of_service_in_getArchiveComment.patch</Patch> -->
<!--             <Patch level="1">php-imap-myrights.diff</Patch> -->
            <Patch level="0">db6.patch</Patch>
<!--             <Patch>950-Fix-dl-cross-compiling-issue.patch</Patch> -->

            <!--Debian Patches-->
            <Patch level="1">debian/052-phpinfo_no_configure.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>php-cli</Name>
        <RuntimeDependencies>
            <Dependency version="current">php-common</Dependency>
            <Dependency>gd</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>mariadb-lib</Dependency>
            <Dependency>libmcrypt</Dependency>
            <Dependency>mit-kerberos</Dependency>
            <Dependency>postgresql-lib</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/php/cli</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/usr/bin/go-pear" permission="0755" owner="root">go-pear</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>php-common</Name>
        <Summary>Common config files for PHP</Summary>
        <RuntimeDependencies>
            <Dependency>db</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>gdbm</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>

        <Files>
            <Path fileType="library">/usr/lib/php/modules</Path>
            <Path fileType="data">/usr/share/php7</Path>
            <Path fileType="data">/etc/php/ext</Path>
        </Files>
    </Package>

    <Package>
        <Name>php-devel</Name>
        <Summary>Development files for PHP</Summary>
        <RuntimeDependencies>
            <Dependency version="current">php-common</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/php-config</Path>
            <Path fileType="executable">/usr/bin/phpize</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/php/build</Path>
            <Path fileType="man">/usr/share/man/man1/php-config*</Path>
            <Path fileType="man">/usr/share/man/man1/phpize*</Path>
        </Files>
    </Package>

    <Package>
        <Name>mod_php</Name>
        <PartOf>server.web</PartOf>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>apache</Dependency>
            <Dependency>libtool-ltdl</Dependency>
            <Dependency>mariadb-lib</Dependency>
            <Dependency>postgresql-lib</Dependency>
            <Dependency>gd</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>mit-kerberos</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency>cyrus-sasl</Dependency>
            <Dependency>harfbuzz</Dependency>
            <Dependency>php-common</Dependency>
            <Dependency>libmcrypt</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/apache2/modules/libphp7.so</Path>
            <Path fileType="config">/etc/apache2</Path>
            <Path fileType="config">/etc/php/apache2</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/apache2/modules.d/70_mod_php7.conf" permission="0644" owner="root">70_mod_php7.conf</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>php-zip</Name>
        <Summary>Zip extension for PHP</Summary>
        <RuntimeDependencies>
            <Dependency>php-common</Dependency>
            <Dependency>libzip</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/php/modules/zip.so</Path>
            <Path fileType="config">/etc/php/cli/ext/10-php-zip.ini</Path>
            <Path fileType="config">/etc/php/ext/10-php-zip.ini</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/php/ext/10-php-zip.ini" permission="0644" owner="root">10-php-zip.ini</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>php-imap</Name>
        <Summary>Module for PHP to enable IMAP support</Summary>
        <RuntimeDependencies>
            <Dependency>openssl</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>php-common</Dependency>
            <Dependency>libc-client</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/php/modules/imap.so</Path>
            <Path fileType="config">/etc/php/ext/11-php-imap.ini</Path>
            <Path fileType="config">/etc/php/cli/ext/11-php-imap.ini</Path>
            <Path fileType="config">/etc/php/apache2/ext/11-php-imap.ini</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/php/ext/11-php-imap.ini" permission="0644" owner="root">11-php-imap.ini</AdditionalFile>
        </AdditionalFiles>
    </Package>
    <Package>
        <Name>php-fpm</Name>
        <Summary>FPM for PHP</Summary>
        <RuntimeDependencies>
            <Dependency>libxslt</Dependency>
            <Dependency>libmcrypt</Dependency>
            <Dependency>php-common</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>postgresql-lib</Dependency>
            <Dependency>openldap-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/sbin/php-fpm</Path>
            <Path fileType="man">/usr/share/man/man8/php-fpm.8</Path>
            <Path fileType="config">/etc/php/ext/php-fpm.conf</Path>
            <Path fileType="config">/etc/php-fpm.d/www.conf.default</Path>
            <Path fileType="data">/usr/share/fpm</Path>
            <Path fileType="data">/run</Path>
            <Path fileType="data">/var/log</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/php/ext/php-fpm.conf" permission="0644" owner="root">php-fpm.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>


    <History>
        <Update release="4">
            <Date>2017-12-24</Date>
            <Version>7.2.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-06-06</Date>
            <Version>5.6.30</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>5.6.20</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-20</Date>
            <Version>5.6.20</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
